import request from "@/utils/request";

export const API = {
	LIST: '/follow/enterprise/page', // 关注列表
	FOLLOW: '/follow/enterprise', // （取消）关注
	ACTION_DETAIL: '/tax/dynamic/list', // 动态详情
	ACTION_LIST: '/notify/remind', // 动态列表
	READ_ACTION: '/notify/remind/read/' // 读消息
}

export function getFollowListApi (params) {
	return request.get(API.LIST, {params})
}

export function changeFollowApi (data) {
	return request.post(API.FOLLOW, data)
}

export function getActionApi (params) {
	return request.get(API.ACTION_DETAIL, {params})
}

export function getActionListApi (params) {
	return request.get(API.ACTION_LIST, {params})
}

export function readActionApi (id) {
	return request.put(API.READ_ACTION + id)
}
